package com.qcby.model.dto;

import java.util.Date;

import com.qcby.model.User;

import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserNoPassword {

    private Integer uid;

    private Date uCreatedAt;

    private String displayName;

    private String username;

    private String phone;

    private String uPic;

    private String uRole;

    public UserNoPassword(User user) {
        this.uid = user.getUid();
        this.uCreatedAt = user.getUCreatedAt();
        this.displayName = user.getDisplayName();
        this.username = user.getUsername();
        this.phone = user.getPhone();
        this.uPic = user.getUPic();
        this.uRole = user.getURole();
    }
}
